package com.mogul.lahub.fragment

import android.annotation.SuppressLint
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.graphics.TypefaceCompat
import androidx.fragment.app.Fragment
import com.mogul.lahub.MainActivity
import com.mogul.lahub.R
import com.mogul.lahub.databinding.FragmentLenwodbdLoanBinding

class LendLoanFragment:Fragment() {

    private lateinit var lenwodbdLoanBinding:FragmentLenwodbdLoanBinding

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        lenwodbdLoanBinding = FragmentLenwodbdLoanBinding.inflate(inflater,container,false)
        return lenwodbdLoanBinding.root
    }

    @SuppressLint("RestrictedApi")
    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        val mainActivity = context as MainActivity
        val typeface =
            TypefaceCompat.createFromResourcesFontFile(mainActivity, getResources(), R.font.xuyuan, "", 0)
        lenwodbdLoanBinding.tvNambwhjdeValue.setTypeface(typeface)
        lenwodbdLoanBinding.tvTenudnwkrValue.setTypeface(typeface)

    }
}